#include <iostream>//main.cpp
#include <string>
#include "Stud.cpp"

using namespace std;

int main()
{
    int i,n;
    cout<<"How many students: n=";
    cin>>n;
    Stud s[n];
    for(i=0;i<n;i++)
        s[i].setdata();
    for(i=0;i<n;i++)
        s[i].print();
    Stud::avg();
    cout<<endl<<"their degree:"<<endl;
    for(i=0;i<n;i++)
    {
        display(s[i]);
    }

    return 0;
}
